﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Entities;

namespace CuaHangBangDia.QLHD
{
    public partial class QLHoaDon : Form
    {
        public QLHoaDon()
        {
            InitializeComponent();
            dgvHoaDon.AutoGenerateColumns = false;
        }

        private void QLHoaDon_Load(object sender, EventArgs e)
        {

        }

        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            dgvHoaDon.DataSource = HoaDon.Objects.GetAll().ToList();
        }
       
        private void toolStripButton5_Click(object sender, EventArgs e)
        {
            QLBD.QLBDForm frm= new QLBD.QLBDForm();
            frm.ShowDialog();
        }

        private void toolStripButton6_Click(object sender, EventArgs e)
        {
            QLBD.ThemBDForm frm1 = new QLBD.ThemBDForm();
            frm1.ShowDialog();
        }

        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            frmThemHoaDon frm = new frmThemHoaDon();
            frm.ShowDialog();
        }
    }
}
